<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/static/admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/static/admin/js/libs/modernizr.min.js"></script>
</head>
<style type="text/css">
    ul.pagination  li{
        float: left;
    }
    div.list-page{
        width: 400px;
        margin: 0 auto;
        text-align: center;
    }
</style>
<body>
{include file="Public/top" /}
<div class="container clearfix">
    {include file="Public/left" /}
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:url('admin/index/index')}">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">问卷模板管理</span></div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="{:url('cate/add')}"><i class="icon-font"></i>新增模板</a>
                        <a href="{:url('cate/join')}"><i class="icon-font"></i>导入模板</a> 
                        <a href="{:url('cate/out')}"><i class="icon-font"></i>导出模板</a>
                        
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th width="6%">ID</th>
                            <th>模板名称</th>
                            <!-- <th width="6%">模板类型</th> -->
                            <th width="15%">操作</th>
                        </tr>
                        {volist name="cateres" id="vo"}
                        <tr>
                            <td>{$vo.id}</td>
                            <td title="{$vo.catename}">{$vo.catename}
                            </td>
                            <!-- <td>
                            {if condition="$vo['type'] eq 0"}
                            列表栏目
                            {else /}
                            留言板
                            {/if}
                            </td> -->
                            <td>
                                <a class="link-update" href="{:url('edit',array('id'=>$vo.id))}">修改</a>
                                <a class="link-del" onclick="return confirm('你确定要删除该栏目吗？');" href="{:url('del',array('id'=>$vo.id))}">删除</a>
                                <a class="link-del"   href="{:url('article/born',array('id'=>$vo.id))}">生成问卷</a>
                            </td>
                        </tr>
                        {/volist}
                    </table>
                          
                     <nav>
 
                    <div class="list-page">{$cateres->render()}</div> 
                 
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>